using MQTTnet.Client;

namespace MQTTDebugTool.Utils;

public class MQTTClientConfig
{
    public string Server { get; set; } = "localhost";
    
    public int Port { get; set; } = 1883;
    
    public MqttClientOptions ToMqttClientOptions()
    {
        return new MqttClientOptions()
        {
            ChannelOptions = new MqttClientTcpOptions()
            {
                Server = Server,
                Port = Port
            }
        };
    }

}